public class Arac {
	private String marka;
	public String renk;

	@Override
	public int hashCode() {
		final int prime = 31;
		int result = 1;
		result = prime * result + id;
		result = prime * result + ((marka == null) ? 0 : marka.hashCode());
		result = prime * result + ((renk == null) ? 0 : renk.hashCode());
		return result;
		// return 1;
	}

	@Override
	public boolean equals(Object obj) {
		if (this == obj)
			return true;
		if (obj == null)
			return false;
		if (getClass() != obj.getClass())
			return false;
		Arac other = (Arac) obj;
		if (id != other.id)
			return false;
		if (marka == null) {
			if (other.marka != null)
				return false;
		} else if (!marka.equals(other.marka))
			return false;
		if (renk == null) {
			if (other.renk != null)
				return false;
		} else if (!renk.equals(other.renk))
			return false;
		return true;
	}

	private int id;

	public Arac(String marka, String renk, int id) {
		this.marka = marka;
		this.renk = renk;
		this.id = id;
	}
}
